package com.twu.biblioteca;

public class ListBooksState implements State {

    public static ListBooksState instance = new ListBooksState();
    BibliotecaApp biblio;

    private ListBooksState (){

    }

    public void setBibliotecaApp(BibliotecaApp newBiblioteca) {
        this.biblio = newBiblioteca;
    }

    public String getMessage() {
        return biblio.listBooks() +
                "Press any number to go back to the main menu.";
    }

    public String getMenuOption() {
        return "View Books";
    }

    public State change(String input) {
        return MenuState.instance;
    }
}
